* lisp/emacs-lisp/advice.el (ad-compile-function):
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Jun 2010 01:18:31 +0000 (21:18 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 9 Jun 2010 01:18:31 +0000 (21:18 -0400)
Define warning-suppress-types before we let-bind it.

lisp/ChangeLog
lisp/emacs-lisp/advice.el

index f526c9a916659830573e4f3b612d5ac015d2e5a3..0f660682162f0657663eff0b0c4d7880ec2ab6b4 100644 (file)
@@ -1,5 +1,8 @@
 2010-06-09  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+       * emacs-lisp/advice.el (ad-compile-function):
+       Define warning-suppress-types before we let-bind it (bug#6275).
+
        * vc-dispatcher.el: Rename mode-line-hook to vc-mode-line-hook;
        declare it, make it buffer-local and permanent-local (bug#6324).
        (vc-resynch-window): Adjust name.
index 17f2ed53ba5465b1bf4f8966bbab90725b7ec09e..9267bc8ac91fc0e1cecd84dcbc42c7e35760f274 100644 (file)
@@ -2684,6 +2684,8 @@ For that it has to be fbound with a non-autoload definition."
       ;; because `byte-compile' uses `fset':
       (ad-with-auto-activation-disabled
        (require 'bytecomp)
+       (require 'warnings)              ;To define warning-suppress-types
+                                        ;before we let-bind it.
        (let ((symbol (make-symbol "advice-compilation"))
             (byte-compile-warnings byte-compile-warnings)
              ;; Don't pop up windows showing byte-compiler warnings.